package com.esms.struts.service;

import java.util.List;

import com.esms.bean.Action;
import com.esms.bean.ActionDAO;

public class RoleCreateService {
	private RoleCreateService() {}
	public static RoleCreateService $ = new RoleCreateService(); 
	
	public List getRoles() {
		return (List) ActionDAO.$.findAll();
	}
	
	public void creatRole(Action action) {
		ActionDAO.$.save(action);
	}
}
